/*
 * Copyright© 2013-2018 YZTC 
 * Author zhenghl 
 * 本公司保留所有下述内容的权利; 
 * 本内容为保密信息，仅限本公司内部使用; 
 * 非经本公司书面许可，任何人不得外泄或用于其他目的; 
*/
package com.wxmp.wxcms.service;
import com.wxmp.wxcms.domain.MediaFiles;
import com.wxmp.wxcms.domain.MsgNews;
import java.util.List;
/**
 *
 * @author hermit
 * @version 2.0
 * @date 2018-04-17 10:54:58
 */
public interface MsgNewsService {
	public MsgNews getById(String id);
	public List<MsgNews> listForPage(MsgNews searchEntity);
	public List<MsgNews> getWebNewsListByPage(MsgNews searchEntity);
	public void add(MsgNews entity);
	public void update(MsgNews entity);
	public void delete(MsgNews entity);
	public List<MsgNews> getRandomMsg(String inputcode,Integer num);
	public MsgNews getByBaseId(String baseid);
	public int updateMediaId(MsgNews entity);
	public int addSingleNews(MsgNews news,MediaFiles entity);
	public int addMediaFiles(MediaFiles entity);
	public int addMoreNews(MsgNews news);
	public Boolean addMoreNews(List<MsgNews> news);
	/**
	 * 查询多图文主表
	 * @return
	 */
    public List<MediaFiles> getMediaFileList();
	public List<MsgNews> getMsgNewsList();
	public void deleteNews(String mediaId);
	/**
	 * 更新单图文消息
	 * @param news
	 */
	public void updateSingleNews(MsgNews news);
	public List<MsgNews> getByMediaId(String mediaId);
}
